package com.mzba.place.fragment;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;

import com.mzba.place.BasicActivity;

/**
 * 
 * @author 06peng
 *
 */
public class FragmentNavigation {

	/**
	 * fragment 互相替换
	 * @param basicAct
	 * @param fragment
	 * @param tags
	 */
	public static void replace(BasicActivity basicAct, Fragment fragment, int layoutId, String tags) {
		FragmentManager fragmentManager = basicAct.getSupportFragmentManager();
		FragmentTransaction  ft = fragmentManager.beginTransaction();
		ft.replace(layoutId, fragment, tags);
		ft.commit();
	}
}
